package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HatchetCardTypeMapper;
import com.ruoyi.system.domain.HatchetCardType;
import com.ruoyi.system.service.IHatchetCardTypeService;
import com.ruoyi.common.support.Convert;

/**
 * 银行卡类型 服务层实现
 * 
 * @author ruoyi
 * @date 2019-03-22
 */
@Service
public class HatchetCardTypeServiceImpl implements IHatchetCardTypeService 
{
	@Autowired
	private HatchetCardTypeMapper hatchetCardTypeMapper;

	/**
     * 查询银行卡类型信息
     * 
     * @param iD 银行卡类型ID
     * @return 银行卡类型信息
     */
    @Override
	public HatchetCardType selectHatchetCardTypeById(String iD)
	{
	    return hatchetCardTypeMapper.selectHatchetCardTypeById(iD);
	}
	
	/**
     * 查询银行卡类型列表
     * 
     * @param hatchetCardType 银行卡类型信息
     * @return 银行卡类型集合
     */
	@Override
	public List<HatchetCardType> selectHatchetCardTypeList(HatchetCardType hatchetCardType)
	{
	    return hatchetCardTypeMapper.selectHatchetCardTypeList(hatchetCardType);
	}
	
    /**
     * 新增银行卡类型
     * 
     * @param hatchetCardType 银行卡类型信息
     * @return 结果
     */
	@Override
	public int insertHatchetCardType(HatchetCardType hatchetCardType)
	{
	    return hatchetCardTypeMapper.insertHatchetCardType(hatchetCardType);
	}
	
	/**
     * 修改银行卡类型
     * 
     * @param hatchetCardType 银行卡类型信息
     * @return 结果
     */
	@Override
	public int updateHatchetCardType(HatchetCardType hatchetCardType)
	{
	    return hatchetCardTypeMapper.updateHatchetCardType(hatchetCardType);
	}

	/**
     * 删除银行卡类型对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteHatchetCardTypeByIds(String ids)
	{
		return hatchetCardTypeMapper.deleteHatchetCardTypeByIds(Convert.toStrArray(ids));
	}
	
}
